package com.wind.soblogin;

/**
 * @author: dr
 * @date: 2021/2/1
 * @description 用户信息
 */
public class SobUser {
    private boolean success;
    private int code;
    private String message;
    private UserInfo data;

    /**
     * id : 000
     * userName : debug
     * password :
     * roles : role_admin
     * avatar : http://mp.moonlightshadow.cn:2020/admin/image/1611996785969_805118404330520576.png
     * email : 000@163.com
     * sign : 三界之内没有我写不出的bugs+
     * state : 1
     * reg_ip :
     * login_ip :
     * createTime : 2020-11-15T12:35:00.000+0000
     * update_time : 2021-02-01T09:04:30.000+0000
     */

    public static class UserInfo {

        private String id;
        private String userName;
        private String password;
        private String roles;
        private String avatar;
        private String email;
        private String sign;
        private String state;
        private String reg_ip;
        private String login_ip;
        private String createTime;
        private String update_time;

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getUserName() {
            return userName;
        }

        public void setUserName(String userName) {
            this.userName = userName;
        }

        public String getPassword() {
            return password;
        }

        public void setPassword(String password) {
            this.password = password;
        }

        public String getRoles() {
            return roles;
        }

        public void setRoles(String roles) {
            this.roles = roles;
        }

        public String getAvatar() {
            return avatar;
        }

        public void setAvatar(String avatar) {
            this.avatar = avatar;
        }

        public String getEmail() {
            return email;
        }

        public void setEmail(String email) {
            this.email = email;
        }

        public String getSign() {
            return sign;
        }

        public void setSign(String sign) {
            this.sign = sign;
        }

        public String getState() {
            return state;
        }

        public void setState(String state) {
            this.state = state;
        }

        public String getReg_ip() {
            return reg_ip;
        }

        public void setReg_ip(String reg_ip) {
            this.reg_ip = reg_ip;
        }

        public String getLogin_ip() {
            return login_ip;
        }

        public void setLogin_ip(String login_ip) {
            this.login_ip = login_ip;
        }

        public String getCreateTime() {
            return createTime;
        }

        public void setCreateTime(String createTime) {
            this.createTime = createTime;
        }

        public String getUpdate_time() {
            return update_time;
        }

        public void setUpdate_time(String update_time) {
            this.update_time = update_time;
        }

        @Override
        public String toString() {
            return "UserInfo{" +
                    "id='" + id + '\'' +
                    ", userName='" + userName + '\'' +
                    ", password='" + password + '\'' +
                    ", roles='" + roles + '\'' +
                    ", avatar='" + avatar + '\'' +
                    ", email='" + email + '\'' +
                    ", sign='" + sign + '\'' +
                    ", state='" + state + '\'' +
                    ", reg_ip='" + reg_ip + '\'' +
                    ", login_ip='" + login_ip + '\'' +
                    ", createTime='" + createTime + '\'' +
                    ", update_time='" + update_time + '\'' +
                    '}';
        }
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public UserInfo getData() {
        return data;
    }

    public void setData(UserInfo data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return "SobUser{" +
                "success=" + success +
                ", code=" + code +
                ", message='" + message + '\'' +
                ", data=" + data +
                '}';
    }
}